//
//  PhotoBaseManager.h
//  Filmax Pictures
//
//  Created by Jonas on 16/8/19.
//  Copyright © 2016年 Jonas. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "ZLPhotoPickerBrowserViewController.h"
#import "HelpObject.h"

typedef void(^GetPhotoImage)(NSData *imageData);

@interface PhotoBaseManager : NSObject<ZLPhotoPickerBrowserViewControllerDelegate,UINavigationControllerDelegate,UIImagePickerControllerDelegate>

@property (nonatomic, weak) ZLPhotoPickerBrowserViewController *pickerBrowser;
//获取照片
@property (nonatomic, copy) GetPhotoImage getPhotoImage;
//删除照片
@property (nonatomic, copy) void (^deletPicture)(NSInteger num);

+ (PhotoBaseManager *)photoBaseShareManage;

//图片浏览删除
- (void)tapBrowser:(NSInteger)selectIndext imageMutableArray:(NSMutableArray *)imageMutableArray viewController:(UIViewController * )viewController;

//只是图片浏览
- (void)tapBrowserNoDelete:(NSInteger)selectIndext imageMutableArray:(NSMutableArray *)imageMutableArray viewController:(UIViewController *)viewController;

//拍摄照片

- (void)getPhotoPicture:(UIViewController *)viewController compress:(BOOL)compress photoSize:(NSInteger)photoSize photoWidth:(NSInteger)photoWidth edited:(BOOL)edited photoBlock:(GetPhotoImage)photoBlock;

//- (void)getPhotoPicture:(UIViewController *)viewController Compress:(BOOL)compress PhotoSize:(NSInteger)photoSize PhotoWidth:(NSInteger)photoWidth Edited:(BOOL)edited PhotoBlock:(GetPhotoImage)photoBlock;

//从相册获取
- (void)getPhotoPictureFromAlbum:(UIViewController *)viewController compress:(BOOL)compress photoSize:(NSInteger)photoSize photoWidth:(NSInteger)photoWidth edited:(BOOL)edited photoBlock:(GetPhotoImage)photoBlock;
//- (void)getPhotoPictureFromAlbum:(UIViewController *)viewController Compress:(BOOL)compress PhotoSize:(NSInteger)photoSize PhotoWidth:(NSInteger)photoWidth Edited:(BOOL)edited PhotoBlock:(GetPhotoImage)photoBlock;

- (void)getPhotoPicture:(UIViewController *)viewController;

//没有权限时跳入照片服务开启功能
+ (void)openCameraFunction;

//前往开启相册权限
+ (void)openAlbumFunction;

//判断拍照权限
+ (BOOL)judgeTheRootOpenCamera;

//判断是否有相册权限
+ (BOOL)judgeTheRootOpenAlbum;

//提示拍照权限
+ (void)enterTheCameraFunction:(UIViewController *)viewController;

//提示相册权限
+ (void)enterTheAlbumFunction:(UIViewController *)viewController;

//提示定位权限
+ (void)enterTheAddressFunction:(UIViewController *)viewController;

@end
